home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / PInterfaces / OSEvents.p < prev    next >
Encoding:
Text File  |  1992-01-29  |  1.2 KB  |  56 lines  |  [TEXT/MPS ]

  1.  
  2. {
  3. Created: Sunday, September 15, 1991 at 11:52 PM
  4.  OSEvents.p
  5.  Pascal Interface to the Macintosh Libraries
  6.  
  7.   Copyright Apple Computer, Inc. 1985-1991
  8.   All rights reserved
  9. }
  10.  
  11.  
  12. {$IFC UNDEFINED UsingIncludes}
  13. {$SETC UsingIncludes := 0}
  14. {$ENDC}
  15.  
  16. {$IFC NOT UsingIncludes}
  17.  UNIT OSEvents;
  18.  INTERFACE
  19. {$ENDC}
  20.  
  21. {$IFC UNDEFINED UsingOSEvents}
  22. {$SETC UsingOSEvents := 1}
  23.  
  24. {$I+}
  25. {$SETC OSEventsIncludes := UsingIncludes}
  26. {$SETC UsingIncludes := 1}
  27. {$IFC UNDEFINED UsingTypes}
  28. {$I $$Shell(PInterfaces)Types.p}
  29. {$ENDC}
  30. {$IFC UNDEFINED UsingEvents}
  31. {$I $$Shell(PInterfaces)Events.p}
  32. {$ENDC}
  33. {$IFC UNDEFINED UsingOSUtils}
  34. {$I $$Shell(PInterfaces)OSUtils.p}
  35. {$ENDC}
  36. {$SETC UsingIncludes := OSEventsIncludes}
  37.  
  38. FUNCTION PostEvent(eventNum: INTEGER;eventMsg: LONGINT): OSErr;
  39. FUNCTION PPostEvent(eventCode: INTEGER;eventMsg: LONGINT;VAR qEl: EvQElPtr): OSErr;
  40. FUNCTION OSEventAvail(mask: INTEGER;VAR theEvent: EventRecord): BOOLEAN;
  41. FUNCTION GetOSEvent(mask: INTEGER;VAR theEvent: EventRecord): BOOLEAN;
  42. PROCEDURE FlushEvents(whichMask: INTEGER;stopMask: INTEGER);
  43.  INLINE $201F,$A032;
  44. PROCEDURE SetEventMask(theMask: INTEGER);
  45.  INLINE $31DF,$0144;
  46. FUNCTION GetEvQHdr: QHdrPtr;
  47.  INLINE $2EBC,$0000,$014A;
  48.  
  49.  
  50. {$ENDC} { UsingOSEvents }
  51.  
  52. {$IFC NOT UsingIncludes}
  53.  END.
  54. {$ENDC}
  55.  
  56.